package com.infinit.easyreader.application;

import android.app.Application;

import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;

/**
 * MyApp [V 1.0.0]
 * classes : com.infinit.easyreader.application.MyApp
 * 全局的APPLICATION
 * Created by rzy on 2016/1/29.
 */
public class MyApp extends Application {


    @Override
    public void onCreate() {
        super.onCreate();
        //设置一个默认的UncaughtExceptionHandler
//        ErrorHandler errorHandler = new ErrorHandler(this);
        //Thread.setDefaultUncaughtExceptionHandler(errorHandler);
        ImageLoaderConfiguration configuration = ImageLoaderConfiguration.createDefault(this);
        ImageLoader.getInstance().init(configuration);
    }


    /**
     * 用于获取preference中保存的相关设置项
     */


}



